package com.jfreer.blog;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.impl.JCLLoggerAdapter;

import java.lang.reflect.Field;

/**
 * Description：<br/>
 *
 * @author: landy
 * @date: 2016/07/20 23:46
 * note:
 */
public class App {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        Logger logger = LoggerFactory.getLogger(App.class);
        System.out.println(logger.getClass());
        JCLLoggerAdapter jclLoggerAdapter = (JCLLoggerAdapter) logger;
        jclLoggerAdapter.info("test information");
        jclLoggerAdapter.info("test information");
        Field field=JCLLoggerAdapter.class.getDeclaredField("log");
        field.setAccessible(true);
        Object o = field.get(jclLoggerAdapter);
        System.out.println(o.getClass());
    }
}
